#include "llReporter.hpp"
using namespace llmake;
#include <iostream>
#include <cstdlib>
using namespace std;

void llReporter::Error(void)
{
	cout<<"Error:"<<m_Info<<endl;
	exit(-1);
}
void llReporter::Warning(void)
{
	cout<<"Warning:"<<m_Info<<endl;
	for (llTokenList::iterator iter = m_TokenList.begin();iter != m_TokenList.end(); ++iter)
	{
		cout<<"file="<<iter->m_Loc.file<<" line="<<iter->m_Loc.line<<" token="<<iter->m_Token<<endl;
	}
}
